﻿using UnityEngine;

namespace Game.Model
{
    /// <summary>
    /// 地图上角色的类
    /// </summary>
    public class MapCharacter : IMapObject
    {
        /// <summary>
        /// 世界坐标
        /// </summary>
        private Vector2 _WorldPosition;

        /// <summary>
        /// 名字
        /// </summary>
        public string Name;

        public Vector2 WorldPosition => _WorldPosition;

        /// <summary>
        /// 移动到某个位置
        /// </summary>
        public void MoveTo(Vector2 target, bool teleport = false)
        {
            _WorldPosition = target;
        }
    }
}